package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class UserCollectResponse {
    @ApiModelProperty(value = "分类列表(第一页时返回）", dataType = "UserCollectResponse.Type")
    private List<Type> typeList;

    @ApiModelProperty(value = "商品列表", dataType = "UserCollectResponse.Goods")
    private PageResponse2<Goods> goodsPage;

    @Data
    @Builder
    @ApiModel("UserCollectResponse.Type")
    public static class Type {
        private Integer typeId;
        private String typeName;
    }

    @ApiModel("UserCollectResponse.Goods")
    @Data
    @Builder
    public static class Goods {
        @ApiModelProperty(value = "商品ID")
        private Integer goodsId;
        @ApiModelProperty(value = "商品名称")
        private String goodsName;
        @ApiModelProperty(value = "商品图片")
        private String photo;
        @ApiModelProperty(value = "商品价格")
        private BigDecimal price;
    }
}
